#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_091;

TEST_CASE("91. Decode Ways", "[091]") {

CHECK(Solution().numDecodings("12")   == 2);
CHECK(Solution().numDecodings("226")  == 3);
CHECK(Solution().numDecodings("0")    == 0);
CHECK(Solution().numDecodings("1")    == 1);
CHECK(Solution().numDecodings("2101") == 1);
CHECK(Solution().numDecodings("10")   == 1);

}
